package design.pattern.Decorator.inter.impl;

import design.pattern.Decorator.inter.BasicDecorator;

/**
 * 吃动作 装饰器
 *
 * @param <R> 参数类型
 * @author lihh
 */
public class BasicImplDecorator<R> implements BasicDecorator<R> {
  
  @Override
  public void operate(R data) {
    String thing = (String) data;
    System.out.printf("准备吃东西了 %s%n", thing);
  }
}
